﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Text;
using CLEX.ClientTest.Service;
using CLEX.Server.Host;

namespace CLEX.ClientTest
{
    public class Program
    {
        static void Main(string[] args)
        {
            //bool result1;
            //bool result2;
            //using (ClientServiceClient proxy = new ClientServiceClient())
            //{
            //    result1 = proxy.Login("user1", "user1");
            //    proxy.Close();
            //}
            //using (ClientServiceClient proxy = new ClientServiceClient())
            //{
            //    result2 = proxy.Login("user1", "not matching user");
            //    proxy.Close();
            //}
            //Console.WriteLine(result1);
            //Console.WriteLine(result2);

            //UserData[] users;
            //using (AdminServiceClient proxy = new AdminServiceClient())
            //{
            //    users = proxy.GetAllUsers();
            //    proxy.Close();
            //}

            //Console.WriteLine(users.Length);
            //foreach (UserData user in users)
            //{
            //    Console.WriteLine(user.Username);
            //}



            AdminService svc = new AdminService();
            var users = svc.GetAllUsers();
            Console.WriteLine(users.Count);
            Console.Read();
        }
    }
}
